# 第一步：导包
import requests

#请求网址:http://182.92.81.159:8080/wx/auth/login
#请求方法:POST
#请求头：
#Content-Type: application/json;charset=utf-8
#请求体：
#{"username":"user123","password":"user123"}
#返回数据：
#第二步：发送接口请求
resp = requests.post(url="http://192.168.129.141:8080/wx/auth/login",
              headers={"Content-Type":"application/json;charset=utf-8"},
              json={"username":"user123","password":"user123"})
#第三步：查看响应数据
print(resp.json())
print(resp.text)
print(resp.status_code)
print(resp.url)
print(resp.encoding)
print(resp.headers)
